import jinja2
import webapp2

JINJA_ENV = jinja2.Environment(
    loader=jinja2.FileSystemLoader('templates'),
    extensions=['jinja2.ext.autoescape']
)

class DefaultHandler(webapp2.RequestHandler):

    def get(self):
        template_values = []

        template = JINJA_ENV.get_template('index.html')
        self.response.headers['Content-Type'] = 'text/html'
        self.response.write(template.render(template_values))

app = webapp2.WSGIApplication([
    ('/', DefaultHandler)
    ], debug=True)